# 练习2:
#     用列表定义10个同学的成绩,输出最高分,最低分,总分和平均值;  求总分，可以利用fot循环，累加求和；

# 定义成绩列表
scores = [78, 85, 92, 88, 76, 95, 89, 84, 91, 87]

# 计算最高分、最低分、总分和平均值
max_score = max(scores)
min_score = min(scores)
total_score = sum(scores)
average_score = total_score / len(scores)

print("最高分:", max_score)
print("最低分:", min_score)
print("总分:", total_score)
print("平均分:", average_score)